const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  publicPath: "/custom-form",
  configureWebpack: {
    output: {
      library: "customForm",
      libraryTarget: "umd",
    },
    // module: {
    //   rules: [
    //     {
    //       test: /\.(css|scss|sass)$/,
    //       use: [
    //         {
    //           loader: "sass-loader",
    //           options: {
    //             implementation: require("sass"),
    //             additionalData: `@use "@/assets/element.scss" as *;`,
    //           },
    //         },
    //       ],
    //     },
    //   ],
    // },
  },

  transpileDependencies: true,
  devServer: {
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
  },
});
